# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-asttokens
pkgver=2.0.4
pkgrel=0
pkgdesc="Annotate AST trees with source code positions"
url="https://github.com/gristlabs/asttokens"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-six"
makedepends="py3-setuptools"
checkdepends="py3-astroid py3-pytest"
source="https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-$pkgver.tar.gz"
builddir="$srcdir/"asttokens-$pkgver

build() {
	python3 setup.py build
}

check() {
	env PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2be6a2ddef35c45ed8b6576a35618b6bc1a4d8c50ab7ac2970d549e7310d46fc8a29fff514d58d6e01c984e04389ca8aee6efed510f349013ab8e2c867c98669  asttokens-2.0.4.tar.gz"
